import service from '@/util/request.js';

const defaultPrefix = '/orders/admin';

export function getOrderListService(order) {
  return service.post(defaultPrefix + '/list', order);
}

export function getOrderByIdService(orderId) {
  return service.get(defaultPrefix + '/' + orderId);
}

export function handleOrderShipService(orderId) {
  return service.put(defaultPrefix + '/ship/' + orderId);
}

export function auditRefundOrderService(orderId, result) {
  return service.put(defaultPrefix + '/audit/' + orderId + '/' + result);
}